package com.example.demo.service.impl;

import com.example.demo.dao.SysUserRoleMapper;
import com.example.demo.dto.SysUserRole;
import com.example.demo.service.SysUserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName SysUserRoleServiceImpl
 * @Desecription TODO 1.2新增
 * @Author gjy
 * @Date 2021/4/7 16:15
 * @Version 1.2
 **/
@Service
public class SysUserRoleServiceImpl implements SysUserRoleService {
    @Autowired
    private SysUserRoleMapper userRoleMapper;

    @Override
    public List<SysUserRole> listByUserId(Integer userId) {
        return userRoleMapper.listByUserId(userId);
    }
}
